import request from '../utils/request'
export function getAllData(data) {
    return request({
        url: "/homedata",
        method: "post",
        data
    })
}
export function deleteOne(data) {
    return request({
        url: "/sdele",
        method: "post",
        data
    })
}
export function searchData(data) {
    return request({
        url: "/search",
        method: "post",
        data
    })
}
// 删除所有
export function deleAllNews(data) {
    return request({
        url: "/alldele",
        method: "post",
        data
    })
}
export function updateNews(data) {
    return request({
        url: "/update",
        method: "post",
        data
    })
}
export function seaByTime(data) {
    return request({
        url: "/timesearch",
        method: "post",
        data
    })
}
